<div class="sidebar">
    <div class="nav-menu">
        <h3>博客分类</h3>
        <ul id="article_type_list">

        </ul>
    </div>
    <div class="statistics">
        <h3>网站统计</h3>
        <ul>
            <li><strong>日志总数：</strong>500</li>
            <li><strong>评论总数：</strong>573</li>
            <li><strong>标签总数：</strong>62</li>
            <li><strong>页面总数：</strong>0</li>
            <li><strong>分类总数：</strong>10</li>
            <li><strong>链接总数：</strong>0</li>
            <li><strong>用户总数：</strong>58</li>
            <li><strong>最后更新：</strong>2019-01-02</li>
        </ul>
    </div>
</div>
<script>
    loadArticleType();
    function loadArticleType(){
        loadPostServer("/api/article/getArticleTypeList", {}, function(list){
            var articleTypeHtml = "";
            for ( var i = 0; i < list.length; i++){
                articleTypeHtml += '<li><a href="/article/type">'+list[i].typeName+'</a></li>';
            }
            $("#article_type_list").html(articleTypeHtml);
        })
    }
</script>